Skip to content

Future-proof ScopeFactory#3453

Merged
TomasVotruba merged 1 commit intorectorphp:masterfrom
ondrejmirtes:scope-factory
May 31, 2020
Merged

Future-proof ScopeFactory#3453
TomasVotruba merged 1 commit intorectorphp:masterfrom
ondrejmirtes:scope-factory

Conversation

@ondrejmirtes
Copy link
Copy Markdown
Contributor

As MutatingScope constructor can change often and is not covered by backwards compatibility promise, this is a much better way to construct it. As you can notice, it's just a bunch of code deleted as you can simply call $this->phpStanScopeFactory->create() for the same effect.

Thanks.

@ondrejmirtes ondrejmirtes force-pushed the scope-factory branch 3 times, most recently from 452c4be to 5d6e3ed Compare May 31, 2020 12:16
@TomasVotruba
Copy link
Copy Markdown
Member

I see, thank you Ondra.

@TomasVotruba TomasVotruba merged commit 3465583 into rectorphp:master May 31, 2020
TomasVotruba added a commit that referenced this pull request Mar 4, 2023
rectorphp/rector-src@ed16cab [Php80] Add typed property Closure support on ClassPropertyAssignToConstructorPromotionRector (#3453)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants